﻿using System;
using Microsoft.Practices.Unity;
using DoNet.Common.IoC;

namespace DoNet.Common.Cache
{
    public class CacheFactory
    {
        public static ICacheStrategy Create()
        {
            try
            {
                return UnityContext.Current.Container.Resolve<ICacheStrategy>();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

    }
}
